package com.example.easyexcel.exports.simple_export.ReadMe;

import lombok.SneakyThrows;

import java.net.URLEncoder;

/**
 * @version: V1.0
 * @author: huangcf
 * @className: Testtt
 * @packageName: com.example.easyexcel.exports.simple_export.demos
 * @description:
 * @data: 2023/12/26 13:31
 **/
public class Body_URLEncoder {
    @SneakyThrows
    public static void main(String[] args) {
        System.out.println(URLEncoder.encode(body, "utf-8"));
    }


    static String body = "{\n" +
            " \"fileName\": \"sampleLibrary\",\n" +
            " \"sheetSize\":20,\n" +
            " \"fieldOfDataResult\": \"list\",\n" +
            " \"pageConfig\": {\n" +
            "  \"fieldOfPageNum\": \"pageNum\",\n" +
            "  \"fieldOfPageSize\": \"pageSize\",\n" +
            "  \"fieldOfTotal\": \"total\"\n" +
            " },\n" +
            " \n" +
            " \"headList\": [\n" +
            "  { \"title\": \"ID\" , \"fieldName\": \"id\" }, \n" +
            "  { \"title\": \"请验单号\" , \"fieldName\": \"code\" }, \n" +
            "  { \"title\": \"样品类型\" , \"fieldName\": \"sampleTypeName\" }, \n" +
            "  { \"title\": \"样品批号\" , \"fieldName\": \"batchNo\" }, \n" +
            "  { \"title\": \"样品名称\" , \"fieldName\": \"samplesNameView\" }, \n" +
            "  { \"title\": \"检测项目\" , \"fieldName\": \"detectionName\" }, \n" +
            "  { \"title\": \"条码编号\" , \"fieldName\": \"printCode\" }, \n" +
            "  { \"title\": \"请验信息自定义字段\" , \"fieldName\": \"printCode\" }, \n" +
            "  { \"title\": \"项目名称\" , \"fieldName\": \"projectName\" }, \n" +
            "  { \"title\": \"项目编号\" , \"fieldName\": \"projectCode\" }, \n" +
            "  { \"title\": \"关联分析实验\" , \"fieldName\": \"experimentNum\" }, \n" +
            "  { \"title\": \"分析部门\" , \"fieldName\": \"deptName\" ,\"nullDefault\":\"N/A\" }, \n" +
            "  { \"title\": \"分析人\" , \"fieldName\": \"analyzeName\" ,\"emptyDefault\":\"N/A\" }, \n" +
            "  { \"title\": \"请验人\" , \"fieldName\": \"sendName\" }, \n" +
            "  { \"title\": \"存放位置\" , \"fieldName\": \"position\" }, \n" +
            "  { \"title\": \"请验日期\" , \"fieldName\": \"samplesTime\" }, \n" +
            "  { \"title\": \"分析完成时间\" , \"fieldName\": \"analysisTime\" }, \n" +
            "  { \"title\": \"当前状态\" , \"fieldName\": \"samplesStatusName\" }, \n" +
            "  { \"title\": \"检测结果\" , \"fieldName\": \"testResult\" }, \n" +
            "  { \"title\": \"是否有关联的报告\" , \"fieldName\": \"isRelReport\" }, \n" +
            "  { \"title\": \"是否可以收样\" , \"fieldName\": \"canReceive\" }, \n" +
            "  {\n" +
            "   \"title\": \"aaa\",\n" +
            "   \"fieldName\": \"sampleInfoJson.contrastInfo.aa#aaa\"\n" +
            "  }, \n" +
            "  {\n" +
            "   \"title\": \"zzz\",\n" +
            "   \"fieldName\": \"sampleInfoJson.contrastInfo.zz#zzz\"\n" +
            "  }, \n" +
            "  {\n" +
            "   \"title\": \"xxx\",\n" +
            "   \"fieldName\": \"sampleInfoJson.contrastInfo.xx#xxx\"\n" +
            "  }\n" +
            " ],\n" +
            "\n" +
            " \"valueFormats\": {\n" +
            "  \"samplesTime\": \"yyyy-MM-dd HH:mm:ss\",\n" +
            "  \"analysisTime\": \"yyyy-MM-dd HH\",\n" +
            " },\n" +
            " \"valueMatchRules\": {\n" +
            "  \"isRelReport\": {\n" +
            "   1: \".1111111111.\",\n" +
            "   2: \".2222222222.\",\n" +
            "   3: \".3333333333.\"\n" +
            "  },\n" +
            "  \"canReceive\": {\n" +
            "   true: \"YES\",\n" +
            "   FALSE: \"--FALSE--\" \n" +
            "  }\n" +
            " },\n" +
            " \"valueConcatRules\": {\n" +
            "  \"batchNo\": [\"@batchNo\",\"(\",\"@samplesNameView\",\")\",\"...\"],\n" +
            "  \"projectName\": [\"@projectName\",\"(\",\"@projectCode\",\")\",\"###\"]\n" +
            " }\n" +
            "}";

}

/**
 *
 */